<%@ page import="java.util.List" %>
<%@ page import="product.bean.Product" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/11/28
  Time: 17:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
    <link rel="stylesheet" href="/Bookstore/css/js.css">
</head>
<body>
<div id="product">
    <div class="table">
<%
    List<Product> list1 =(List<Product>) request.getAttribute("list1");
    int count=0;
    for (Product product:list1){
        %>
    <div class="pruductinfo" style="<% if (count%4==0){%> clear:left<%}%>">
        <div class="img" ><img src="<%=product.getImgurl()%>" alt=""></div>
        <div class="info">书籍名称：<spen><%=product.getProductname()%></spen>价格：<spen><%=product.getPrice()%></spen></div>
    </div>
<%----%>
    <%count++;
    }

%></div>
</div>
</body>
</html>
